package com.ysalliance.getFan.organization.adapter;


import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ysalliance.getFan.organization.Bean.ClassBean;
import com.ysalliance.getFan.organization.R;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public class ClassroomAdapter extends BaseQuickAdapter<ClassBean, BaseViewHolder> {

    public ClassroomAdapter(int layoutResId, @Nullable List<ClassBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, ClassBean item) {
        helper.setText(R.id.tv_class_name,  item.getName() );

        if(helper.getLayoutPosition() == 0){
            helper.setVisible(R.id.view_hold, false);
        }

    }
}


